import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { LogInInterfaceComponent } from './log-in-interface/log-in-interface.component';
import { StaffAttendanceComponent } from './staff-attendance/staff-attendance.component';
import { ManagerSystemComponent } from './manager-system/manager-system.component';
import { AdministrationStaffAttendanceComponent } from './administration-staff-attendance/administration-staff-attendance.component';
import { RegisterComponent } from './register/register.component';

import { AuthGuardService } from './service/auth-guard.service';
import { ProfileModule } from './profile/profile.module';
import { LogInComponent } from './log-in/log-in.component';

const routes: Routes = [
  { path: '', redirectTo: '/log-in-interface', pathMatch: 'full' },
  { path: 'log-in-interface', component: LogInInterfaceComponent },
  { path: 'register', component: RegisterComponent },
  { path: 'staff-attendance', component: StaffAttendanceComponent },
  { path: 'manager-system', component: ManagerSystemComponent },
  { path: 'administration-staff-attendance', component: AdministrationStaffAttendanceComponent },
  // {
  //     path: 'log-in',
  //     canActivate: [AuthGuardService],
  //     loadChildren: 'app/log-in/log-in.module#LogInModule'
  // }
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }
